]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Fix summary position in RTL locales
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 15 Sep 2012 22:46:28 +0000 (00:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Sep 2012 01:44:49 +0000 (03:44 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=684214

js/ui/messageTray.js

index 30cb6a7e6b7332c72fd6e97286fd4f6740813ab5..5f6e17f67f14a7bfb1e5fa40635c7faacbbf04bf 100644 (file)
@@ -1410,10 +1410,12 @@ const MessageTray = new Lang.Class({
             actor.grab_key_focus();
         }));
         global.focus_manager.add_group(this.actor);
+        let rtl = this.actor.get_text_direction() == Clutter.TextDirection.RTL;
         this._summary = new St.BoxLayout({ name: 'summary-mode',
                                            reactive: true,
                                            track_hover: true,
-                                           x_align: Clutter.ActorAlign.END,
+                                           x_align: rtl ? Clutter.ActorAlign.START
+                                                        : Clutter.ActorAlign.END,
                                            x_expand: true,
                                            y_align: Clutter.ActorAlign.CENTER,
                                            y_expand: true });